﻿// -----------------------------------------------------------------------
// <copyright file="ErrorMessage.cs" company="Abyssalsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Metal.User
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;

    /// <summary>
    /// Custom error message dialog
    /// </summary>
    internal partial class ErrorMessage : Form
    {
        /// <summary>
        /// Initializes a new instance of the ErrorMessage class.
        /// </summary>
        public ErrorMessage()
        {
            this.InitializeComponent();
        }

        /// <summary>
        /// Sets the error title
        /// </summary>
        internal string ErrorTitle
        {
            set
            {
                this.lblErrorTitle.Text = value;
            }
        }

        /// <summary>
        /// Sets the StackTrace info
        /// </summary>
        internal string StackTrace
        {
            set
            {
                this.txtStackTrace.Text = value;
            }
        }

        /// <summary>
        /// Close error message
        /// </summary>
        /// <param name="sender">Object sender</param>
        /// <param name="e">Event args</param>
        private void ButtonClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
